FROM base.troila.com:9000/library/openjdk:temurin-21.0.4.7-jdk-noble
MAINTAINER xincan
VOLUME /tmp
COPY ./target/tarot-demo-3.0.0.jar /tarot-demo-3.0.0.jar
EXPOSE 4000
# ENV JJAVA_OPTS="-Xms512m -Xmx1024m -Xss256k -XX:+UseG1GC -XX:+PrintGCDetails"

ENV JJAVA_OPTS=""

RUN mkdir -p ./logs/tarot-demo

ENTRYPOINT ["sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /tarot-demo-3.0.0.jar"]
